import turtle


def polygon(n, dis=100, color='green'):
    turtle.fillcolor(color)
    turtle.begin_fill()
    for i in range(n):
        turtle.forward(dis)
        turtle.left(180-(n-2)*180/n)
    turtle.end_fill()

polygon(3)
turtle.goto(0, -100)
polygon(4,color='red')
turtle.goto(50, -255)
turtle.left(36)
polygon(5, 100, 'gold')
turtle.done()
